package cn.zqh.commodity.client;

import cn.zqh.bean.bo.Brand;
import cn.zqh.commodity.config.DefaultFeignConfiguration;
import cn.zqh.commodity.interceptor.FeignInterceptor;
import com.sun.xml.internal.ws.api.FeatureListValidatorAnnotation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "bs-brand",configuration = { DefaultFeignConfiguration.class, FeignInterceptor.class})
public interface BrandClient {
    /**
      * @Author: zqh
      * @Date:
      * @Description: 通过id查询品牌
    */
    @GetMapping(value = "/brand/getBrandById")
    public Brand getBrandById(@RequestParam("id") Integer id);
}
